import request from '../utils/request'

// 产量统计========================
// 表格数据
export function yieldList(data) {
    return request({
        url: '/statistics/yield_list',
        method: 'post',
        data
    })
}

// 导出
export function yieldExport(data) {
    return request({
        responseType: 'blob',
        url: '/statistics/yield_export',
        method: 'get',
        params:data
    })
}

// 员工绩效========================
// 表格数据
export function performanceList(data) {
    return request({
      url: '/statistics/performance_list',
      method: 'post',
      data
    })
}

// 部门下拉
export function depOther(data) {
    return request({
      url: '/statistics/dep_other',
      method: 'post',
      data
    })
}

// 导出
export function performanceExport(data) {
    return request({
        responseType: 'blob',
        url: '/statistics/performance_export',
        method: 'get',
        params:data
    })
}

// 工资========================
// 表格数据
export function wagersReportList(data) {
    return request({
      url: '/statistics/wagers_report_list',
      method: 'post',
      data
    })
}

// 导出
export function wagersReportExport(data) {
    return request({
        responseType: 'blob',
        url: '/statistics/wagers_report_export',
        method: 'get',
        params:data
    })
}

// 不良品项分布========================
// 表格数据
export function badProductDis(data) {
    return request({
      url: '/statistics/bad_product_dis',
      method: 'post',
      data
    })
}

// 导出
export function badProductDisExport(data) {
    return request({
        responseType: 'blob',
        url: '/statistics/bad_product_dis_export',
        method: 'get',
        params:data
    })
}

// 不良品项汇总========================
// 表格数据
export function badProductDisDetail(data) {
    return request({
      url: '/statistics/bad_product_dis_detail',
      method: 'post',
      data
    })
}

// 导出
export function bpddExport(data) {
    return request({
        responseType: 'blob',
        url: '/statistics/bpdd_export',
        method: 'get',
        params:data
    })
}

// 生产报表========================
// 表格数据
export function produceReport(data) {
    return request({
      url: '/statistics/produce_report',
      method: 'post',
      data
    })
}

// 导出
export function produceReportExport(data) {
    return request({
        responseType: 'blob',
        url: '/statistics/produce_report_export',
        method: 'get',
        params:data
    })
}

// 在制品报表========================
// 表格数据
export function wip(data) {
    return request({
      url: '/statistics/wip',
      method: 'post',
      data
    })
}

//表头
export function wipHeader(data) {
    return request({
      url: '/statistics/wip_header',
      method: 'post',
      data
    })
}

// 导出
export function wipExport(data) {
    return request({
        responseType: 'blob',
        url: '/statistics/wip_export',
        method: 'get',
        params:data
    })
}

// 工序设置
export function processSet(data) {
    return request({
      url: '/statistics/process_set',
      method: 'post',
      data
    })
}